import { axios } from '@/utils/request'

const api = {
  list: '/mch_admin/cash/list',
  save: '/mch_admin/cash/save',
  info: '/mch_admin/cash/info',
  log: '/mch_admin/cash/log'
}

export default api

export function list (parameter) {
  return axios({
    url: api.list,
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: api.save,
    method: 'post',
    data: parameter
  })
}

export function info (parameter) {
  return axios({
    url: api.info,
    method: 'get',
    params: parameter
  })
}

export function log (parameter) {
  return axios({
    url: api.log,
    method: 'get',
    params: parameter
  })
}
